True while an overlay effect is playing. An effect that pulses once is over after its last frame, and every overlay ends when a room is loaded.
Works differently on Game Boy - overlay_active says whether an effect is still playing on the Game Boy; an effect that is refused because the screen's lines are busy (a Dialogue with two real bars, a text band) is not playing.
Works differently on Game Boy Color - overlay_active says whether an effect is still playing on the Game Boy Color; an effect that could not start is not playing.
Works differently on Sega Genesis - The Sega Genesis plays overlay effects its own way.
On other consoles this differs: see Side by side and How the consoles differ.
overlay_active() -> boolbool
Gives back true while an overlay effect is playing. An effect that pulses once is over after its last frame, and every overlay ends when a room is loaded.
if (overlay_active()) {
x += 1;
}The walker steps to the right while the effect plays.